import type { App } from 'vue';

const components: any = import.meta.glob('./*/index.vue', { eager: true });

export default {
  install(app: App) {
    Object.keys(components).forEach((key: string) => {
      app.component(key, components[key]); // 遍历挂载组件
    });
  },
};
